package com.hha.entity;

import java.util.Arrays;
import java.util.List;

public class Teacher {
    private String teaName;
    private Course course[];

    private List<Student> studentList ;
//    public void teach() {
//        System.out.println("你好");
//    }

    public Teacher(String teaName, Course[] course, List<Student> studentList) {
        this.teaName = teaName;
        this.course = course;
        this.studentList = studentList;
    }

    public Teacher() {

    }

    public String getTeaName() {
        return teaName;
    }

    public void setTeaName(String teaName) {
        this.teaName = teaName;
    }

    public Course[] getCourse() {
        return course;
    }

    public void setCourse(Course[] course) {
        this.course = course;
    }

    public List<Student> getStudentList() {
        return studentList;
    }

    public void setStudentList(List<Student> studentList) {
        this.studentList = studentList;
    }

    @Override
    public String toString() {
        return "Teacher{" +
                "teaName='" + teaName + '\'' +
                ", course=" + Arrays.toString(course) +
                ", studentList=" + studentList +
                '}';
    }
    public void teach(){
        System.out.println(this.teaName+"在上课");
    }
}
